/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package agenda.de.eventos.fronteira;

/*
 * Colocando duas bibliotecas: awt.Dimension(para armazenar alturas e larguras)
 * e awt.Toolkit(para fazer diferentes perguntas ao sistema operecional)
*/
import java.awt.*;
import javax.swing.*;

/**
 *
 * @author Pessoal
 */
public class TelaInicial extends JFrame{
    
    
    public TelaInicial(){        
       /*
        definindo o tamanho, a localizacao, e o nome do frame principal e
        o default close e pra parar a execucao quando fechar o frame
        */        
       this.setSize(1000, 1000);
       Toolkit tk = Toolkit.getDefaultToolkit();
       Dimension dim = tk.getScreenSize();
       int xPos = (dim.width / 2) - (this.getWidth() / 2);
       int yPos = (dim.height / 2) - (this.getHeight() / 2);
       this.setLocation(xPos, yPos);
       this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
       this.setTitle("Tela Inicial");
       this.setVisible(true);
       
       
       /*
       criando um painel pra ir dentro do frame
       */ 
       
       JPanel painelPrincipal = new JPanel();
       painelPrincipal.setBackground(Color.WHITE);
       //painelPrincipal.setLayout(new BoxLayout(painelPrincipal, BoxLayout.Y_AXIS));
       this.add(painelPrincipal);
       
       /*
       botao do menu
       */
       
       JButton botaoMenu = new JButton("MENU");
       botaoMenu.setForeground(Color.DARK_GRAY);
       //botaoMenu.setBorderPainted(false);
       botaoMenu.setContentAreaFilled(false);
       painelPrincipal.add(botaoMenu);
       /*
       table do calendario
       */
       
       int rowls = 7;
       int cols = 7;
       JTable calendario = new JTable(rowls, cols);
       calendario.setVisible(true);
       painelPrincipal.add(calendario);
       
  
       
      
    }
}
